using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 委托产品管理
    /// </summary>
    [Serializable]
    [Route("/api/agentproduct", "POST,PUT,GET")]
    public class AgentProduct : EntityBase<AgentProduct>
    {
        /// <summary>
        /// 委托单位Id
        /// </summary>      
        public Guid? AgentId { get; set; }
        /// <summary>
        /// 委托单位名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String AgentName { get; set; }
        /// <summary>
        /// 可覆盖城市
        /// </summary>
        [StringLength(50)]
        public String City { get; set; }
        /// <summary>
        /// 城市编号
        /// </summary>
        [StringLength(50)]
        public String CityCode { get; set; }
        /// <summary>
        /// 可提供产品
        /// </summary>
        [StringLength(50)]
        public String Product { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>       
        public Guid? ProductId { get; set; }
        /// <summary>
        /// 委托价格
        /// </summary>
        public double Price { get; set; }

    }
}
